"""Build versioned extent allocator tests"""


def scons():
    """Execute build"""
    Import('denv')

    denv.Append(CPPDEFINES=['-DDAOS_PMEM_BUILD'])
    libraries = ['smd', 'pmemobj', 'cmocka', 'daos_common_pmem', 'uuid', 'abt', 'gurt']
    tenv = denv.Clone()

    tenv.require('argobots')

    tenv.AppendUnique(LIBPATH=[Dir('..')])
    smd_ut = tenv.d_test_program('smd_ut.c', LIBS=libraries)
    tenv.Install('$PREFIX/bin/', smd_ut)


if __name__ == "SCons.Script":
    scons()
